package pers.lmd.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import pers.lmd.domain.R;
import pers.lmd.domain.dto.TeacherDTO;
import pers.lmd.service.ITeacherService;

/**
 * @Author lmd
 * @Date 2023/4/11 22:09
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/system")
@Tag(name = "老师控制器")
public class TeacherController {

    private final ITeacherService ITeacherService;

    @Operation(summary = "增加老师")
    @PostMapping("/teacher")
    public R<Void> add(@RequestBody TeacherDTO teacherDTO){
        return ITeacherService.addTeacher(teacherDTO);
    }



}
